package edu.ynu.se.xiecheng.achitectureclass.entity;
import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Where(clause = "is_deleted = 0")
@Table(name = "user")
public class UserEntity extends LogicEntity {

    @Column(nullable = false, name = "username")
    private String userName;

    @Column(nullable = false)
    private String password;

}
